#include <iostream>
#include <string>

class Test
{
public:
    Test()
    {
        std::cout<<"构造函数"<<std::endl;
    }
    ~Test()
    {
        std::cout<<"析构函数"<<std::endl;
    }
private:
    int a;
};

int main()
{   
    //int *p = new int[4];
    //delete p;
    Test *t = new Test[4];
    delete []t;
    return 0;
}